//tab切换
function setTab2(name,cursel,n){
 for(i=1;i<=n;i++){
  var menus=document.getElementById(name+i);
  var cons=document.getElementById("g3_"+name+"_"+i);
  menus.className=i==cursel?"selectTag":"";
  cons.style.display=i==cursel?"block":"none";
 }
}
//tab_input切换4 checked
function setTab4(name,cursel,n){
 for(i=1;i<=n;i++){
  var menus=document.getElementById(name+i);
  var cons=document.getElementById("g4_"+name+"_"+i);
  menus.checked=i==cursel?"checked":"";
  cons.style.display=i==cursel?"block":"none";
 }
}
//tab_input切换5
function setTab5(name,cursel,n){
 for(i=1;i<=n;i++){
  var menus=document.getElementById(name+i);
  var cons=document.getElementById("g5_"+name+"_"+i);
  menus.className=i==cursel?"selectTag":"";
  cons.style.display=i==cursel?"block":"none";
 }
}
function showCalculator(){
	var url="/decoration-estimation/secure/calculator/index.action";
	var WinSettings = "center:yes;resizable:no;dialogHeight:200px;dialogWidth:800px;dialogLeft:300px;dialogTop:200px";
	window.showModalDialog(url,"",WinSettings);
}

//去掉点击链接 虚线边框
      window.onload=function()
      {
     for(var i=0; i<document.links.length; i++)
     document.links[i].onclick=function(){this.blur()}
     }
      